﻿using Deployment.Data.Variable;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Deployment.Data.SQL.Variable.UI
{
    /// <summary>
    /// Interaction logic for SQLConnectionVariableControl2.xaml
    /// </summary>
    public partial class SQLConnectionVariableControl2 : AbstractVariableEditorControl
    {
        public SQLConnectionVariableControl2()
        {
            InitializeComponent();
            //base.lbl_Data.Content = "Connection name:";

            ////Binding ConnectionBinding = new Binding();
            ////ConnectionBinding.Source = base.Environments;
            ////ConnectionBinding.Path = new PropertyPath("Connections");
            ////ConnectionBinding.Mode = BindingMode.TwoWay;
            ////ConnectionBinding.UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged;
            ////cbo_Data.SetBinding(ComboBox.ItemsSourceProperty, ConnectionBinding);
            ////cbo_Data.DisplayMemberPath = "Name";

            ////Binding ExtraDataBinding = new Binding();

            //cbo_Extra.ItemsSource = SQLConnectionVariable.VisableSelectionList();
            //cbo_Extra.IsEditable = false;
            ////lbl_Extra.Visibility = System.Windows.Visibility.Visible;
            ////cbo_Extra.Visibility = System.Windows.Visibility.Visible;
        }

        private void chb_ContentOk_Checked(object sender, RoutedEventArgs e)
        {
            ContentOk = (chb_ContentOk.IsChecked == true);
        }
    }
}
